import request from '@/utils/request'
import apis from '@/api'

export function getInvoiceList (parameter) {
  return request({
    url: apis.GetInvoiceList,
    method: 'get',
    params: parameter
  })
}

export function getInvTitList (parameter) {
  return request({
    url: apis.GetInvTitList,
    method: 'get',
    params: parameter
  })
}

export function getAddInvTit () {
  return request({
    url: apis.AddInvoiceTitle,
    method: 'get'
  })
}

export function postAddInvTit (data) {
  return request({
    url: apis.AddInvoiceTitle,
    method: 'post',
    data: data
  })
}

export function delInvTit (id) {
  return request({
    url: `${apis.DelInvTitle}?id=${id}`,
    method: 'get'
  })
}
